<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
       <h1>基本信息如下</h1>
       <%
         request.setCharacterEncoding("utf-8");//解决汉字乱码
         String name=request.getParameter("name");
         out.print("name="+name);
         String pass=request.getParameter("pass");
         out.print("pass="+pass);
         String email=request.getParameter("email");
         out.print("email="+email);
         String [] hobby=request.getParameterValues("hobby");
         for(int i=0;hobby!=null&&i<hobby.length;i++)
        	 out.print(hobby[i]);
       %>
       <%
         if(name!=null&&name.length()>=6){
        	response.sendRedirect("../student.jsp");
         }else{
        	 out.print("输入有误");
         }
       %>
</body>
</html>